package com.atguigu.tingshu.album.config;


import com.qcloud.vod.VodUploadClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix="vod") //读取节点
@Data
public class VodConstantProperties {

    private Integer appId;
    private String secretId;
    private String secretKey;
    private String region;
    private String procedure;
    private String tempPath;

    @Bean
    public VodUploadClient vodUploadClient() {
        VodUploadClient client = new VodUploadClient(secretId, secretKey);
        return client ;
    }

}
